package com.godtree.dao;

import com.godtree.model.RankScore;
import com.godtree.mybatisplus.SuperMapper;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 排名数据项 Mapper 接口
 * </p>
 *
 * @author lisicheng
 * @since 2022-07-18
 */
public interface RankScoreMapper extends SuperMapper<RankScore> {

  /**
   * 更新排名值
   *
   * @param rankItemId 下拉筛选项id
   * @return 影响行数
   */
  int updateRankValue(@Param("rankId") String rankId, @Param("rankItemId") String rankItemId,
      @Param("inverted") Boolean inverted);

  int deleteByDoubleIn(@Param("rankId") String rankId,
      @Param("doubleInList") List<Map<String, String>> doubleInList);
}
